package com.ethan.rabbitdelayconsumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class RabbitListener {
    @org.springframework.amqp.rabbit.annotation.RabbitListener(queues = "delay_queue_01")
    public void processMessage(String msg) {
        log.info("delaymsg---"+msg);
    }
}
